<!--{eval $_TPL['titles'] = array('我的T邮');}-->
<!--{template header_tpl}-->
<div class="grid_16 main_box">
	<div class="grid_16 box">
		<h1>我的T邮</h1>
		<!--{if $pms[list]}-->
			<div class="grid_16 alpha omega">
				<ol class="pm_list">
				<!--{loop $pms[list] $key $value}-->
					<li<!--{if $key%2==1}--> class="alt"<!--{/if}--> id="pm_{$value[pmid]}">
						<div class="left">
							<div class="avatar">
								<!--{if $value[touid]}-->
									<a href="{SITEURL}home/index/$value[touid]"><img src ="{$value[avatar_small]}" ></a>
								<!--{else}-->
									<img src="{SITEURL}resources/images/systempm.gif" width="50" height="50" />
								<!--{/if}-->
							</div>
					
							<div class="pm_body">
								<!--消息头部-->
								<div class="pm_top_a"><div class="pm_top_b"><div class="pm_top_c">&nbsp;</div></div></div>
								<div class="pm_h"><div class="pm_f">
								<p>
								<!--{if $value[touid]}-->
									<a href="{SITEURL}home/index/$value[touid]">{$_SN[$value[touid]]}</a> 
								<!--{/if}-->
								<span class="gray"><!--{date('n-j H:i',$value['dateline'],1)}--></span></p>		
								<div class="pm_c">
									{$value[message]}
									<p>
									<!--{if $value[touid]}-->
									<a href="{SITEURL}pm/read/?pmid=$value[pmid]&touid=$value[touid]">查看详情</a>
									<!--{else}-->
									<a href="{SITEURL}/pm/read/?pmid=$value[pmid]">查看详情</a>
									<!--{/if}-->
									</p>
								</div>
								<!--{if $value[touid]}-->
								<a href="javascript:void(0);" id="pm_a_delete_{$value[pmid]}" class="float_del" onclick="if(confirm('本操作不可恢复，确定删除和该用户的通讯全部记录？')) delPm('$value[touid]', '$value[pmid]');" title="删除和该用户的通讯全部记录？">X</a>
								<!--{/if}-->
								</div></div>
								<!--消息尾部-->
								<div class="pm_bot_a"><div class="pm_bot_b"><div class="pm_bot_c">&nbsp;</div></div></div>
							</div>
						</div>
					</li>
				<!--{/loop}-->
				</ol>
			</div>
			
			<div class="grid_16 footactions">
				<div class="pages">

				</div>
			</div>
		<!--{else}-->
			还没有消息
		<!--{/if}-->
	</div>
</div>
<div class="grid_7 omega sidebar">
	<!--{template userinfo_tpl}-->
</div>
<!--{template footer_tpl}-->